#include <thread>
#include <vector>

#include <logger.h>

int main()
{
    std::vector<int> vec;
    auto func = [&vec]() {
        for (int i = 0; i < 1e4; i++) {
            vec.push_back(i);
        }
    };

    std::vector<std::thread> threads;
    for (int i = 0; i < 10; i++) {
        threads.emplace_back(func);
    }

    for (auto &thread : threads) {
        thread.join();
    }

    VALUE_LOGGER(vec.size());
    return 0;
}
